import request from './request'
import {passwordHash} from '../utilities/crypto'
import {app} from '../utilities/app'
// 查询批量导入员工申请记录列表(分页)
export function queryStaffApply ({currentPage = 1, perPage = 10, companyNo} = {}) {
  return request({
    url: '/staff/queryImportApplyStaffListPage.do',
    method: 'POST',
    body: {currentPage, perPage, companyNo}
  })
}

// 批量导入员工积分申请记录列表(分页)
export function queryIntegralApply ({currentPage = 1, perPage = 10, companyNo} = {}) {
  return request({
    url: '/staff/queryImportApplyStaffIntegralListPage.do',
    method: 'POST',
    body: {currentPage, perPage, companyNo}
  })
}

// 查询导入员工信息列表(分页)
export function queryImportStaff ({currentPage = 1, perPage = 10, applyNo,companyNo} = {}) {
  return request({
    url: '/staff/queryCompanyApplyStaffInfoListPage.do',
    method: 'POST',
    body: {currentPage, perPage, applyNo,companyNo}
  })
}

// 批量导入员工信息确认导入
export function confirmImportStaff (applyNo) {
  return request({
    url: '/staff/confirmCompanyApplyAddStaffInfo.do',
    method: 'POST',
    body: {applyNo}
  })
}

// 查询导入积分信息列表(分页)
export function queryImportIntegral ({currentPage = 1, perPage = 10, applyNo,companyNo} = {}) {
  return request({
    url: '/staff/queryCompanyApplyStaffChargeDetailListPage.do',
    method: 'POST',
    body: {currentPage, perPage, applyNo,companyNo}
  })
}

// 批量导入积分信息确认导入
export function confirmImportIntegral (applyNo) {
  return request({
    url: '/staff/confirmCompanyApplyStaffChargeDetailInfo.do',
    method: 'POST',
    body: {applyNo}
  })
}

// 批量导入积分信息取消导入
export function cancelImport (applyNo,companyNo) {
  return request({
    url: '/staff/cancelCompanyApplyInfo.do',
    method: 'POST',
    body: {applyNo,companyNo}
  })
}